package com.css.fxfzdzzh.modules.basicData.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.css.fxfzdzzh.base.annotation.EntityValue;
import com.css.fxfzdzzh.base.annotation.Transform;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Dbj
 * @date 2023年02月28日  17:15
 */
@Data
public class SeismotectionBelt {
    /**
     * 主键
     */
    private String beltId;

    /**
     * 地震带名称
     */
    @EntityValue(type = "字符型", must = "是", name ="地震带名称" , desc ="长江中游地震带" )
    @NotBlank(message = "地震带名称不能为空")
    @Excel(name = "地震带名称")
    @Transform
    private String beltName;
    /**
     * 震级上限
     */
    @EntityValue(type = "数值型", must = "是", name ="震级上限" , desc ="7" )
    @NotBlank(message = "震级上限不能为空")
    @Excel(name = "震级上限")
    @Transform
    private BigDecimal magnitudeLimit;
    /**
     * 本底震级
     */
    @EntityValue(type = "数值型", must = "是", name ="本底震级" , desc ="5.0" )
    @NotBlank(message = "本底震级不能为空")
    @Excel(name = "本底震级")
    @Transform
    private BigDecimal backgroundMagnitude;
    /**
     *区带编号
     */
    @EntityValue(type = "字符型", must = "是", name ="区带编号" , desc ="II-1" )
    @Excel(name = "区带编号")
    @Transform
    private String zoneNumber;
    /**
     * 地震带内容
     */
    @EntityValue(type = "字符型", must = "是", name ="地震带内容" , desc ="长江中游地震带" )
    @Excel(name = "地震带内容")
    @Transform
    private String beltContent;

    private String dataVersion;

    private String createUser;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String delFlag;

    @Transform
    private String geom;
}
